import server from "../util/request.js";

export function findBed(params) {
    return server({
        url: '/bed/findAll',
        method: 'get',
        params
    })
}

// 新增病床
export function addBed(data) {
    return server({
        url: '/bed/insert',
        method: 'post',
        data
    })
}

// 修改病床
export function updateBed(data) {
    return server({
        url: '/bed/update',
        method: 'post',
        data
    })
}

// 删除病床
export function delBed(id) {
    return server({
        url: '/bed/del',
        method: 'post',
        params: { id }
    })
}


export function findWardId(params) {
    return server({
        url: '/bed/findWardId',
        method: 'GET',
        params
    })
}